package com.briup.ptp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.briup.ptp.entity.Slaughter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Classname slaughterMapper
 * @Description TODO
 * @Date 2024/2/23 16:47
 * @Created by 孙雅如
 * @Version v1.0.0
 */
@Repository
@Mapper
public interface slaughterMapper extends BaseMapper<Slaughter> {
    List<Slaughter> slaughterQueryPage(@Param("name") String name, @Param("pig_species") String pigSpecies);

    void saveSlaughter(Slaughter slaughter);

    void updateSlaughter(Slaughter slaughter);

    Slaughter findByIdSlaughter(Integer id);
}
